xend: Restore values of /vm/uuid/xend/* to recreated domains.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 5 Feb 2008 10:39:35 +0000 (10:39 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 5 Feb 2008 10:39:35 +0000 (10:39 +0000)
commit3ad6af357a3dab88d57fe13e18b917f9017d5683
tree5810990a21196d4653f2f87f4007c929477d735c
parent054ccca730a664d2f1c44f2bf3c22db6bdbf5d25
xend: Restore values of /vm/uuid/xend/* to recreated domains.

When guest domains are restarted, previous values of /vm/uuid/xend/*
in xenstore are lost.  (e.g. previous_restart_time,
last_shutdown_reason). This patch restores them to restarting domains.
And we should update /vm/uuid/xend/restart_count of restarting
domains, not previous domains.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
tools/python/xen/xend/XendDomainInfo.py